package org.roger.search.filter;


/**
 * 范围过滤器
 * @param field 搜索域
 * @param min 最小边界
 * @param max 最大边界
 * @param includeLower 是否包含最小边界
 * @param includeUpper 是否包含最大边界
 * @param isCache 是否启用域缓存
 * @author luoweiyi
 */
public class RangeFilter<T> implements LuceneSearchFilter{
	
	private String field;
	private T min;
	private T max;
	private boolean includeLower;
	private boolean includeUpper;
	private boolean isCache;
	
	public RangeFilter(String field,T min,T max,boolean includeLower, boolean includeUpper){
		this(field,min,max,includeLower,includeUpper,false);
	}
	
	public RangeFilter(String field,T min,T max,boolean includeLower, boolean includeUpper,boolean isCache){
		this.field = field;
		this.min = min;
		this.max = max;
		this.includeLower = includeLower;
		this.includeUpper = includeUpper;
		this.isCache = isCache;
	}
	
}
